<#import "../macro/components.ftl" as components/>
<#include "../macro/layout_default.ftl"/>

<@head>
<link rel="stylesheet" href="/misc/app/css/product_list.css"/>

</@head>

<@body>


</@body>

<@layout_default>



<div class="box">
	<!-- Nav tabs -->
    <ul class="nav nav-tabs" role="tablist">
        <li role="presentation"><a href="/activity/getActivityDetail?activityId=${activityId}">活动详情</a></li>
        <li role="presentation" class="active"><a href="#profile" aria-controls="profile" role="tab">中奖规则</a></li>
        <li role="presentation"><a href="/activity/getActivityAbstractDetail?activityId=${activityId}">活动规则</a></li>
    </ul>
	
	<div class="tab-content">
        <div role="tabpanel" class="tab-pane active" id="profile">
        	<input type="hidden" id="activityId" value="${activityId}" /><!--活动id-->
        	
	    	 <!-------------------中奖规则列表 start-------------------->
        	
			    <div class="box-header with-border">
			        <span class="pull-right text-muted" id="header_span">共 ${activityPrizeList.resultTotal} 条记录</span>
			    </div>
					<!-- /.box-header -->
			    <div class="box-body">
			        <table class="table table-striped table-hover">
			            <tr>
			                <th>ID</th>
			                <th>奖品等级</th>
			                <th>奖品名称</th>
			                <th>奖品类型</th>
			                <th>奖品单价</th>
			                <th>次数限制</th>
			                <th>投放数量</th>
			                <th>中奖比例</th>
			                <th>中奖限制数量</th>
			                
			            </tr>
			            <#if activityPrizeList?exists>
			            <#list activityPrizeList.result as item>
			                <tr>
			                    <td>${item.id}</td>
			                    <td>${item.gradeName!}</td>
			                    <td>${item.prizeName!}</td>
			                    <td>
			                    	 <#if item.prizeType==1>红包<#elseif item.prizeType==2>实物<#else>优惠券</#if>
			                    </td>
			                    <td>${item.prizePrice?string("0.00")}</td>
			                    <td>${item.sameWinningLimitTimes}</td>
			                    <td>${item.nub}</td>
			                    <td>${item.odds?string("0.00")}%</td>
			                    <td>${item.maxWinnngTimes}</td>
			                    
			                </tr>
			            </#list>
			            </#if>
			        </table>
			    </div>
			    <!-- /.box-body -->
			    
			    <div class="box-footer text-center">
			        <@components.pagination "${activityPrizeList.rquesturl}&page=$page",activityPrizeList.page,activityPrizeList.pageTotal/>
			    </div>
			
			<!-------------------中奖规则列表 end------------------------>	
			  
	         
        </div>
    </div>

    
</div>


</@layout_default>